package userlogrouter

import (
	"vpn-management-server/src/controller/userlogcontroller"
	"vpn-management-server/src/interceptor/userloginterceptor"
	"vpn-management-server/src/router/routermodel"
)

var userLogRouter = routermodel.NewRouter()

func init() {
	userLogRouter.RegisterHandleSet("getPageNormalLogsByTimeStamp", userloginterceptor.GetPageLogValidator, userlogcontroller.GetPageNormalLogsByTimestamp, nil)
	userLogRouter.RegisterHandleSet("getPageWarningLogsByTimeStamp", userloginterceptor.GetPageLogValidator, userlogcontroller.GetPageWarningLogsByTimestamp, nil)
	userLogRouter.RegisterHandleSet("getAllNormalLogsByTimeStamp", userloginterceptor.GetAllLogValidator, userlogcontroller.GetAllNormalLogsByTimestamp, nil)
	userLogRouter.RegisterHandleSet("getAllWarningLogsByTimeStamp", userloginterceptor.GetAllLogValidator, userlogcontroller.GetAllWarningLogsByTimestamp, nil)
	userLogRouter.RegisterHandleSet("getPageUserLogAnalyseByTimeStamp", nil, userlogcontroller.GetUserLogAnalysis, nil)
	userLogRouter.RegisterHandleSet("getPageNormalLogsByUGroupIDAndTimestamp", userloginterceptor.GetPageLogsByUGroupIDValidator, userlogcontroller.GetPageNormalLogsByUGroupIDAndTimestamp, nil)
	userLogRouter.RegisterHandleSet("getPageWarningLogsByUGroupIDAndTimestamp", userloginterceptor.GetPageLogsByUGroupIDValidator, userlogcontroller.GetPageWarningLogsByUGroupIDAndTimestamp, nil)
	userLogRouter.RegisterHandleSet("getAllNormalLogsByUGroupIDAndTimestamp", userloginterceptor.GetAllLogsByUGroupIDValidator, userlogcontroller.GetAllNormalLogsByUGroupIDAndTimestamp, nil)
	userLogRouter.RegisterHandleSet("getAllWarningLogsByUGroupIDAndTimestamp", userloginterceptor.GetAllLogsByUGroupIDValidator, userlogcontroller.GetAllWarningLogsByUGroupIDAndTimestamp, nil)
	userLogRouter.RegisterHandleSet("getPageNormalLogsByUserIDAndTimestamp", userloginterceptor.GetLogByUserIDValidator, userlogcontroller.GetPageNormalLogsByUserIDAndTimestamp, nil)
	userLogRouter.RegisterHandleSet("getPageWarningLogsByUserIDAndTimestamp", userloginterceptor.GetLogByUserIDValidator, userlogcontroller.GetPageWarningLogsByUserIDAndTimestamp, nil)
	//userLogRouter.RegisterHandleSet("upLoadNormalLog", userloginterceptor.UpLoadNormalLogValidator, userlogcontroller.UpLoadNormalLog, nil)
	//userLogRouter.RegisterHandleSet("upLoadWaringLog", userloginterceptor.UpLoadWarningLogValidator, userlogcontroller.UpLoadWaringLog, nil)
}
